home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Goodies / I-WAR 2 Egde of Chaos - New SDK / IW2-EOC_Pog_Scripting_SDK.exe / include / iMod.h < prev    next >
C/C++ Source or Header  |  2002-01-14  |  1KB  |  51 lines

  1. //
  2. // (c) 2001 Particle Systems Ltd. All Rights Reserved
  3. //
  4. // iMod.h
  5. //
  6. // API for user modification support.
  7. //
  8. // Revision control information:
  9. //
  10. // $Header: /iwar2/packages/iMod.h 1     7/08/01 15:18 Will $
  11. //
  12.  
  13.  
  14. #include "Flux.h"
  15.  
  16. #ifdef FLUX_COMPILE
  17.  
  18. FLUX_DECLARE_EXTENSION(imod);
  19.  
  20. #ifdef FLUX_LIB
  21. #if _MSC_VER >= 1000
  22. #pragma comment( lib, "imod" )
  23. #endif // _MSC_VER >= 1000
  24. #endif // FLUX_LIB
  25.  
  26. #else
  27.  
  28. //
  29. // Query the mods directory.
  30. //
  31.  
  32. // Build the mod list
  33. prototype iMod.ScanDirectory();
  34.  
  35. // Return the number of mods in the mods directory.
  36. prototype int iMod.Count();
  37.  
  38. // Return the name of the Nth mod in the mods directory.
  39. prototype string iMod.Name( int n );
  40.  
  41. // Return the display name of the Nth mod in the mods directory
  42. prototype string iMod.DisplayName( int n );
  43.  
  44. // Is the Nth mod a scenario
  45. prototype bool iMod.IsScenario( int n );
  46.  
  47. // Activate or deactivate the Nth mod
  48. prototype iMod.Enable( int n, bool enable );
  49.  
  50. #endif // FLUX_DLL
  51.